using System;
using System.Collections.Generic;
using System.Text;

namespace DeviceManager.Device
{
    #region Events
    public delegate void DeviceEvent(object sender, DeviceEventArgs args);
    #endregion

    #region EventArgs
    public class DeviceEventArgs
    {
        private Dictionary<string, object> DeviceEventDics = new Dictionary<string,object>();

        public object this[string index]
        {
            get
            {
                if (DeviceEventDics.ContainsKey(index))
                {
                    return DeviceEventDics[index];
                }
                else
                {
                    return null;
                }
            }

            set
            {
                if (DeviceEventDics.ContainsKey(index))
                {
                    DeviceEventDics[index] = value;
                }
                else
                {
                    DeviceEventDics.Add(index, value);
                }
            }
        }
    }
    #endregion
}
